package com.bearhy.jqadmin.model;

import javax.persistence.*;

@Table(name = "jqadmin_user")
public class JqadminUser {
    @Id
    @Column(name = "user_id")
    private Integer userId;

    @Column(name = "user_name")
    private String userName;

    @Column(name = "user_password")
    private String userPassword;

    @Column(name = "user_nick")
    private String userNick;

    @Column(name = "user_roles")
    private String userRoles;

    /**
     * md5 salt
     */
    @Column(name = "user_salt")
    private String userSalt;

    /**
     * @return user_id
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * @param userId
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * @return user_name
     */
    public String getUserName() {
        return userName;
    }

    /**
     * @param userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * @return user_password
     */
    public String getUserPassword() {
        return userPassword;
    }

    /**
     * @param userPassword
     */
    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    /**
     * @return user_nick
     */
    public String getUserNick() {
        return userNick;
    }

    /**
     * @param userNick
     */
    public void setUserNick(String userNick) {
        this.userNick = userNick;
    }

    /**
     * @return user_roles
     */
    public String getUserRoles() {
        return userRoles;
    }

    /**
     * @param userRoles
     */
    public void setUserRoles(String userRoles) {
        this.userRoles = userRoles;
    }

    /**
     * 获取md5 salt
     *
     * @return user_salt - md5 salt
     */
    public String getUserSalt() {
        return userSalt;
    }

    /**
     * 设置md5 salt
     *
     * @param userSalt md5 salt
     */
    public void setUserSalt(String userSalt) {
        this.userSalt = userSalt;
    }
}